﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dzzzr
{
	/// <summary>
	/// Class for working with DB
	/// </summary>
	class DBDataContext
	{
		/// <summary>
		/// Database context
		/// </summary>
		protected static MonitoringDBDataContext dataContext = null;
		/// <summary>
		/// Database context
		/// </summary>
		public static MonitoringDBDataContext DataContext
		{
			get
			{
				if (dataContext == null)
				{
					dataContext = new MonitoringDBDataContext();
					dataContext.Log = Console.Out;
				}
				return dataContext;
			}
			set
			{
				dataContext = value;
			}
		}
	}
}
